package PTA;

import java.util.Scanner;

public class Api01 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()){
            int n,begin,end;
            n=scanner.nextInt();
            begin = scanner.nextInt();
            end = scanner.nextInt();
            StringBuilder str = new StringBuilder();
            for (int i=0;i<n;i++){
                str.append(i);
            }
            System.out.println(str.substring(begin,end));
        }
    }
}
